package sample.client;

import sample.client.presenter.CMPresenter;
import sample.client.presenter.Presenter;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.name.Names;

public class WidgetClientModule extends AbstractGinModule
{
  @Override
  protected void configure() {
    bind(AppController.class);
    bind(CMModel.class).to(CMModelImpl.class);
    bind(Presenter.class).to(CMPresenter.class);
    bind(HandlerManager.class).toProvider(EventBus.class);
    
    bindConstant().annotatedWith(Names.named("showBorders")).to(false);
    bindConstant().annotatedWith(Names.named("showCapabilities")).to(true);
  }
}
